package com.xjy.rpc.bean;

import lombok.Data;

/**
 * @description: 注册bean,方法的描述对象
 * @author XJY
 * @date 2024/10/8 9:28
 * @version 1.0
 */
@Data
public class BeanDefinition {

    //注册服务唯一标识id
    private Long id;

    //服务名称
    private String serviceName;
    //服务注册数量
    private Integer serviceCount;
    //类名
    private String className;
    //方法名
    private String methodName;

    //方法修饰符
    private int modifiers;
    //入参数类型数组
    private Class[] parametersType;
    //返回值类型
    private Class<?> returnType;

    private String ip;

    private Integer port;

    public BeanDefinition(){}


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public int getModifiers() {
        return modifiers;
    }

    public void setModifiers(int modifiers) {
        this.modifiers = modifiers;
    }

    public Class[] getParametersType() {
        return parametersType;
    }

    public void setParametersType(Class[] parametersType) {
        this.parametersType = parametersType;
    }

    public Class<?> getReturnType() {
        return returnType;
    }

    public void setReturnType(Class<?> returnType) {
        this.returnType = returnType;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public Integer getServiceCount() {
        return serviceCount;
    }

    public void setServiceCount(Integer serviceCount) {
        this.serviceCount = serviceCount;
    }
}
